'Declaration<ExtensionAttribute()> <JetBrains.Annotations.NotNullAttribute()> Public Overloads Shared Function ReadFunction( _ ByVal metric As SparkplugMetric, _ ByVal dataType As SparkplugDataType, _ ByVal readFunction As Func(Of SparkplugData) _ ) As SparkplugMetric
'UsageDim metric As SparkplugMetric Dim dataType As SparkplugDataType Dim readFunction As Func(Of SparkplugData) Dim value As SparkplugMetric value = SparkplugMetricExtension.ReadFunction(metric, dataType, readFunction)
[Extension()] [JetBrains.Annotations.NotNull()] public static SparkplugMetric ReadFunction( SparkplugMetric metric, SparkplugDataType dataType, Func<SparkplugData> readFunction )
[Extension()] [JetBrains.Annotations.NotNull()] public: static SparkplugMetric^ ReadFunction( SparkplugMetric^ metric, SparkplugDataType dataType, Func<SparkplugData^>^ readFunction )
Parameters
- metric
- The Sparkplug metric that will perform the operation.
The value of this parameter cannot be
null(Nothingin Visual Basic). - dataType
- The Sparkplug data type of the metric.
- readFunction
- The read function, i.e. the function that performs the read operation and returns the Sparkplug data that will be published.
The value of this parameter cannot be
null(Nothingin Visual Basic).
Return Value
This method never returns null (Nothing in Visual Basic).